package com.education.service.job;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Author: dongyaoyao
 * @CreateTime: 2024-08-07
 * @Description:
 * @Version: 1.0
 */


public class SystemJob extends BaseJob{
    @Override
    protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
        Date date=new Date();
        SimpleDateFormat sdf= new SimpleDateFormat("yyy-MM-dd HH:mm:ss");
        System.out.println(sdf.format(date));
        System.out.println("执行任务："+SystemJob.class.getSimpleName());
    }
}
